package threadlocal;

import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;


/**
 * @author wuhao
 *
 */
public class ThreadInteruption {
	
	public static void main(String[] args){
		
		Thread t = new Thread(){
			private BlockingQueue bq = new  LinkedBlockingQueue();
			public void run(){
				try {
//	                TimeUnit.SECONDS.sleep(100); 
//					Thread.sleep(10000);
					bq.put("wuhao");
                } catch (InterruptedException e) {
	                System.out.println("exit");
                }
			}
		};
		
		t.start();
		t.interrupt();
	}
	
	
}
